package com.remist.web.action;

import com.opensymphony.xwork2.ActionSupport;
import com.remist.model.News;
import com.remist.service.NewsService;

public class NewsAction  extends BaseAction {

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;
	
	private NewsService newsService;
	public NewsService getNewsService() {
		return newsService;
	}

	public void setNewsService(NewsService newsService) {
		this.newsService = newsService;
	}

	

	public String listNews() throws Exception {
		return SUCCESS;
	}

	public String addNews() throws Exception {
		News newsBean = new News();
		newsService.addNews(newsBean );
		return SUCCESS;
	}
}
